import request from "../utils/request";

export const getMenusByRoleId=(param)=>{
    return request({
        url:"menu/getMenusByRoleId",
        method:'get',
        params:{"roleId":param}
    })
}
export const menu=(param)=>{
    return request({
        url:"menu/list",
        method:'get',
        params:param
    })
}
export const editMenu=(param)=>{
    return request({
        url:"menu/editMenu",
        method:'post',
        data:param
    })
}
export const addMenu=(param)=>{
    return request({
        url:"menu/addMenu",
        method:'post',
        data:param
    })
}
export const getMenuByRoleId=(param)=>{
    return request({
        url:"menu/getMenuByRoleId",
        method:'post',
        data:param
    })
}
export const delMenu=(param)=>{
    return request({
        url:"menu/delMenu",
        method:"get",
        params:{"menuId":param}
    })
}
